package com.sixmac.dao;

import com.sixmac.entity.MessageInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Administrator on 2016/6/1 0001 下午 4:53.
 */
public interface MessageInfoDao extends JpaRepository<MessageInfo, Integer> {

    @Query("select a from MessageInfo a where a.message.id = ?1")
    public List<MessageInfo> findListByMessageId(Integer messageId);
}